package com.simtop.service;

import com.simtop.pojo.experiment.Experiment;
import com.simtop.pojo.experiment.ExperimentVo;

import java.util.List;
import java.util.Map;

/**
 * @author lvyongwei
 */
public interface ExperimentService {

    /**
     * 添加实验信息
     * @param experiment
     * @return
     */
    public boolean addExperiment(Experiment experiment);

    /**
     * 修改实验信息
     * @param experiment
     * @return
     */
    public boolean updateExperiment(Experiment experiment);

    /**
     * 查询列表内容
     * @param experimentvo
     * @return
     */
    public List<ExperimentVo> getAllExperiment(ExperimentVo experimentvo);

    /**
     * 获取实验总次数以及总用时
     * @return
     */
    public Map<String,Long> getChart();

    /**
     * 获取成绩分布
     * @return
     */
    public Map<String,Integer> getScoreDistribution();

    /**
     * 删除实验报告
     * @param ids
     * @return
     */
    public boolean deleteExperiment(Long[] ids);
}
